package com.zc.demo.di;

/**
 * 定义单利类型的舞台类
 * Created by zhangchi9 on 2016/11/2.
 */
public class Stage {
    public Stage(){}

    /**
     * 延迟加载实例
     */
    private static class StageSingletonHolder{
        static Stage instance = new Stage();
    }

    /**
     * 返回实例
     * @return
     */
    public static Stage getInstance(){
        return StageSingletonHolder.instance;
    }
}
